'use strict'


// 时间转换器
var dateTime = function(time){
    let date = new Date(time);
    var timeFullYear = date.getFullYear(time);
    var timeMonth = date.getMonth(time)+1;
    var timeDate = date.getDate(time);
    var timeHours = date.getHours(time);
    var timeMinutes = date.getMinutes(time);
    // console.log(date);
    // console.log(timeFullYear);
    // console.log(timeMonth);
    // console.log(timeDate);
    return (timeFullYear+"年"+timeMonth+"月"+timeDate+"日"+timeHours+"时"+timeMinutes+"分");
};

module.exports = dateTime;